
package com.dhcc.bpm.modules.content.service.impl;

import com.dhcc.bpm.modules.content.entity.News;
import com.dhcc.bpm.modules.content.vo.NewsVO;
import com.dhcc.bpm.modules.content.mapper.NewsMapper;
import com.dhcc.bpm.modules.content.service.INewsService;
import com.dhcc.bpm.modules.content.vo.NewsVO2;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName MarketingServiceImpl
 * @Description  新闻动态 服务实现类
 * @Author lijiacheng
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service
public class NewsServiceImpl extends BaseServiceImpl<NewsMapper, News> implements INewsService {

	@Override
	public IPage<NewsVO> selectNewsPage(IPage<NewsVO> page, NewsVO news) {
		return page.setRecords(baseMapper.selectNewsPage(page, news));
	}

	@Override
	public IPage<NewsVO2> selectNewsPage2(IPage<NewsVO2> page, NewsVO2 news) {
		return page.setRecords(baseMapper.selectNewsPage2(page, news));
	}

}
